.container {
    width: max-content;
    margin: 0 auto;
    text-align: center;
}

.cell {
    border: 1px solid blue;
    padding: 5px 10px;
    display: inline-block;
    margin: 2px;
}

.cell:hover {
    background-color: blue;
    color: white;
}